#include <graphics.h>
#include <windows.h>
#include <math.h>
int main()
{
    
  initwindow(1200,600);
  float V,v,x=0;
  int t=0;
  float y=300,u=3,dm=1,M=100,m;
  for(t;t<100000;t++)
    {m=M-dm;                  //lost some mass
     v=u*log(M/m);            // increase of speed         
     x=x+v*t;                 // movement's law
     circle(x,y,10);
     Sleep(5);
     cleardevice(); 
    }
  getch();
  closegraph();
  return 0;
}
